package com.globallogic.vkulyk.BinaryTree;

public class BinaryTree {
	Node rootNode = null;
	
	public BinaryTree(String rootValue) {
		rootNode = new Node(rootValue);
	}

	public void addNode(String value) {
			rootNode.add(value);
	}

	@Override
	public String toString() {
		return "[" + rootNode.toString().trim() + "]";
	}

	public int getHeight() {
		int depth = rootNode.getHeight();
		return depth - 1;
	}

}
